package com.book.service;

import com.book.base.Service;
import com.book.dto.BookDto;

import java.util.List;

/**
 * @Author LiJinCheng
 * @Date 2020/11/16 8:51 下午
 * @Version 1.0
 * @package com.book.service
 **/
public interface BookService extends Service {
    /**
     * 发布出售记录
     * @param uBook
     * @return
     */
    Integer addUBook(BookDto uBook);

    /**
     * 获取首页数据
     * @return
     */
    List<BookDto> getUBookList();

    BookDto getUBookByCode(String ubCode);

    String getUBCode(Integer parseInt);

    List<BookDto> getBookThree();

    List<BookDto> getBookListByUId(Integer currentId);

    List<BookDto> queryBookByAuthorOrTitle(Integer queryCode, String queryText);

    List<BookDto> queryBook(String keyWord);

    List<BookDto> queryBook(List<Integer> cateIdList, String queryText);

    List<BookDto> searchFilter(List<Integer> cateIdList, String price);

    List<BookDto> searchFilter(Integer cateId, String price);

    List<BookDto> getBookListByBookCode(List<String> codeList);

    Integer deleteBookById(Integer id);

    void batchDeleteBok(List<Integer> ids);
}
